<?php
/** 
class welcome extends CI_Controller{
    Index Page for this conntroller.

    Maps to following URL
      http://example.com/index.php/weclome
.or.
      http://example.com/index.php/weclome/index
.or.
since this controller is as the defult controller in
confing/routes.php, it's displayed at http://example.come/;

so any other public methods not prefixed with underscore will
map to /index.php/weclome/<method_name>
@see http://codeigniter.com/user_guide/general/urls.html
*/
public function  index()
{

    $this->load->view('welcome_message');
}
public function hello($value'')
{
    echo '这是来自第一个ct控制器'；
}
public function say($vaule''){
    echo '说点啥呢？'.vaule;
}
public function view(){
    $data=array(
        'title'=>'视图中的变量'，
        'head'=>'这是控制器传递的标题内容'，
        )；
    $data['userlist']=arry(
        arry('id'=>1,'name'=>'bill','email'=>'bill2@xbmu.edu.cn'),
        arry('id'=>2,'name'=>'gate','email'=>'gate@xbmu.edu.cn'),
        arry('id'=>3,'name'=>'adam','email'=>'adam@xbmu.edu.cn'),
        );
    $this->load->model('mvc_model');
    $data['info']=$this->mvc_model->sayhello();
    $this->load->view('myview.html',$data);

  }
 
}



?>